package com.neborosoft.FlyingDog.android;

import android.content.Context;
import com.neborosoft.lib.stream.TextLoaderConfig;

/**
 * Project: FlyingDog
 * User: stikhonenko
 * Date: 2/25/13
 * Time: 4:33 PM
 */
public final class TextLoaderConfigFactory {
    public static TextLoaderConfig getCommonConfig(final Context context){
        TextLoaderConfig config = new TextLoaderConfig();
        config.setMemoryCacheSize(1024 * 1024);
        config.setDiskCacheSize(1024 * 1024 * 10, new AndroidCachingDirectoryProvider(context));

        return config;
    }
}
